package com.kitchen.ui.button
{
	import flash.display.BitmapData;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	public class NoticeButton extends IButtom
	{
		public static const S_WORDS:String = 'words';
		
		public function NoticeButton(bitMapData:BitmapData)
		{
			super(bitMapData);
			this.drawMask(38, 36);
			this.offsetX(130);
			this.offsetY(200);
			this.addEventListener(MouseEvent.CLICK, clickHandle);
		}
		
		override protected function onMouseOver(me:MouseEvent):void{
			this.offsetX(168);
		}
		
		override protected function onMouseDown(me:MouseEvent):void{
			this.offsetX(130);
		}
		
		override protected function onMouseOut(me:MouseEvent):void{
			this.offsetX(130);
		}
		
		private function clickHandle(me:MouseEvent):void{
			this.dispatchEvent(new Event(S_WORDS));
		}
	}
}